<?PHP
$gallery_content=new content;
$gallery_content->where['category']=$conf->qm[1];
$gallery_content->where['type']='gallery';
$gallery_content->get_content();
$gallery_content->get_all_content_addons();
$content_gallery=current($gallery_content->data);
if(!empty($content_gallery))
{
	$image_gallery=new media();
	$image_gallery->where['content']=$content_gallery['id'];
	$image_gallery->get_gallery_images();	
}


?>